package com.bba.fms.common.ezspecial.enums;

import lombok.Getter;

public enum Regular {
    DEFAULT(null),
    TIME("^[1-9]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\\s+(20|21|22|23|[0-1]\\d):[0-5]\\d:[0-5]\\d$"),
    DATE("^[1-9]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$"),
    NUMBER("^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?)$");

    Regular(String rule) {
        this.rule = rule;
    }

    @Getter
    private String rule;
}